
require "class"
require "Common/define"
require "Common/functions"
require "Thunder/HPlane"

require "View/LoginPanel"--1.引入必须要的lua表
require "Thunder/BG"
require "Thunder/ThunderManager"
require "Thunder/Player"
require "Thunder/Bullet"
require "Thunder/EnemyFactory"
require "Thunder/Boss"
require "Thunder/Enemy"




--管理器--
Game = {};
local this = Game;

--初始化完成，发送链接服务器信息--
function Game.OnInitOK()--lua的启动
 
    -- LoginPanel.New();
    logWarn('Game.OnInitOK');
    BG.New();
    ThunderManager.New()


    -- UpdateBeat:Add(this.Update);--开启Update
    -- LateUpdateBeat:Add(this.LateUpdate);
    -- FixedUpdateBeat:Add(this.FixedUpdate)
end

-- this.lastUpdateTime=0;
-- function Game.Update()
--     local interval = Time.time-this.lastUpdateTime;
--     log("Update"..1/interval);
--     this.lastUpdateTime=Time.time;
-- end

-- function Game.LateUpdate()
--     log("LateUpdate");
-- end

-- function Game.FixedUpdate()
--     log("FixedUpdate");
-- end



